home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / utilit~1 / stcron4.lzh / STCRON4 / MAKEFILE.PCM < prev    next >
Encoding:
Text File  |  1993-11-11  |  1.3 KB  |  69 lines

  1. .SUFFIXES: .ttp .tos .prg .a .lib .o .c
  2.  
  3. PCC = d:\pure_c
  4. PCL = $(PCC)\lib
  5. LIB = c:\usr\lib
  6.  
  7. CCOM    = $(PCC)\pcc.ttp
  8. LD      = $(PCC)\plink.ttp
  9.  
  10. SHELL   = c:\usr\bin\tcsh.ttp -DFAST=true      
  11.  
  12. # avoid the tcsh.rc changing the current working directory
  13. # mintshel doesn't work because linker gets wrong commandline 
  14.  
  15. TMPDIR  = d:\tmp
  16.  
  17. PCFLAGS = -I. -Ic:\usr\include
  18. LDLST   = $(TMPDIR)\libs.lst
  19. LDFILE    = -C=$(LDLST)
  20. STDLIB  = $(LIB)\mintlib.lib
  21. LDLIBS  = $(LIB)\crt0.o $*.o $($@) $($*) $(LDFLAGS) $(STDLIB) 
  22. COMPILE = $(CCOM) $(PCFLAGS) $(CFLAGS) $(CPPFLAGS) $<
  23. LINK    = echo -O=$*.ttp $(LDLIBS) >$(LDLST)
  24. CC      = .c.ttp
  25. # redefine orginal make definition for CC
  26.  
  27. .c .c.ttp:
  28.     $(COMPILE)
  29.     $(LINK)
  30.     $(LD) $(LDFILE)
  31.  
  32. .c.o:
  33.     $(COMPILE)
  34.  
  35. .o .o.ttp:
  36.     $(LINK)
  37.     $(LD) $(LDFILE)
  38.  
  39. CPPFLAGS = -D__MINT__ # -D__DEBUG__
  40. CFLAGS   = -P  -DPROGNAME='"CROND"'
  41.  
  42. crond   = crond.o command.o misc.o debug.o
  43. crontab = crontab.o misc.o
  44. at      = at.o misc.o
  45.  
  46. all:    at.ttp crond.ttp crontab.ttp
  47.  
  48. $(crond)   : cron.h
  49. $(crontab) : cron.h
  50. $(at)      : cron.h
  51.  
  52. crond.ttp: $(crond)
  53.     echo -O=$@ $(LDLIBS) >$(LDLST)
  54.     $(LD) $(LDFILE)
  55.  
  56. crontab.ttp: $(crontab)
  57.     echo -O=$@ $(LDLIBS) $(UXLIB) >$(LDLST)
  58.     $(LD) $(LDFILE)
  59.  
  60. at.ttp: $(at)
  61.     echo -O=$@ $(LDLIBS) $(UXLIB) >$(LDLST)
  62.     $(LD) $(LDFILE)
  63.     
  64. clean:
  65.     rm -f *.o
  66.  
  67. veryclean:
  68.     rm -f *.o *.ttp
  69.